<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/basic.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>帐号设置</title>
</head>
<c:if test="${pass==null }">
	<c:redirect url="login.jsp"></c:redirect>
</c:if>
<body >
	<div class="top">
		<a href="home.jsp"><button>主页</button></a> <a
			href="BlogEdit?action=show"><button>我的博客</button></a> <a
			href="writeblog.jsp"><button>上传博客</button></a> <a href="userinfo.jsp"><button>${pass }</button></a>
		<a href="Login?action=leave"><button>退出登录</button></a>
	</div>
	<h1>个人资料</h1>
	<table align="center">
		<tr>
			<td align="right">用户名:</td>
			<td>${pass.name }</td>
		</tr>
		<tr>
			<td>注册邮箱:</td>
			<td>${pass.email }</td>
		</tr>
		<tr>
			<td align="right">性别:</td>
			<td>${pass.sex }</td>
		</tr>
		<tr>
			<td align="right">年龄:</td>
			<td>${pass.age }</td>
		</tr><tr><td>&nbsp;</td></tr>
		<tr>
			<td><a href="UserEdit">修改资料</a></td>
			<td>&emsp;<a href="resetPass.jsp">修改密码</a></td>
		</tr>
	</table>
</body>
</html>